<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                template="/WEB-INF/templates/template.xhtml">
    
    <ui:define name="sidebar">
        <p:commandButton value="Nova disciplina" oncomplete="adicionarDisciplina();" icon="ui-icon-plus" />
        <p:commandButton value="Editar" oncomplete="editarDisciplina();" icon="ui-icon-pencil" disabled="#{disciplinaCtrl.disciplina == null}" />
        <p:commandButton value="Detalhes" oncomplete="detalharDisciplina();" icon="ui-icon-clipboard" disabled="#{disciplinaCtrl.disciplina == null}" />
        <p:commandButton value="Excluir" oncomplete="excluirDisciplina();" icon="ui-icon-trash" disabled="#{disciplinaCtrl.disciplina == null}" />
    </ui:define>
    
    <ui:define name="content">
        <ui:include src="tabela_todas_disciplinas.xhtml" />
    </ui:define>
    
    <ui:define name="dialogos">
        <ui:include src="edita_disciplina.xhtml" />
        <ui:include src="detalhes_disciplina.xhtml" />
        <ui:include src="exclui_disciplina.xhtml" />
    </ui:define>
</ui:composition>
